package com.zijin.controller;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.zijin.entity.Person8Turnover1;
import com.zijin.service.Person8Turnover1Service;
import com.zijin.service.Person8Turnover2Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class TestController {
    @Autowired
    private Person8Turnover2Service person8Turnover2Service;
    @GetMapping("test")
    public JSONObject findAll(){
//        return person8Turnover1Service.findTurnoverByCounterBankNo("6230942210001031619");
//        return person8Turnover1Service.sumTurnoverByCounterBankNos("6230942210001031619");
        return person8Turnover2Service.findTurnoverAccountNames("00000000");
    }
}
